package com.aspose.cells;

class zbfo {
   static com.aspose.cells.a.d.zb a(Shape var0) throws Exception {
      zbfn var1 = b(var0);
      return a(var1);
   }

   private static zbfn b(Shape var0) throws Exception {
      if (var0.L().n().j()) {
         if (var0.o != null && !"".equals(var0.o)) {
            Shape var2 = zaju.a(var0);
            if (var2 != null) {
               var0 = var2;
            }
         }

         zbkr var3 = new zbkr(zbma.c(var0.getMsoDrawingType()));
         zbma.a(var0, var3);
         if (!var3.e) {
            var3.e(0.0F);
            var3.f(0.0F);
         }

         return var3;
      } else {
         zbkq var1 = new zbkq(zblz.c(var0.getMsoDrawingType()));
         zblz.a(var0, var1);
         if (!var1.d) {
            var1.c(0.0F);
            var1.d(0.0F);
         }

         return var1;
      }
   }

   private static com.aspose.cells.a.d.zb a(zbfn var0) throws Exception {
      int var1 = zadb.b;
      zap var2 = (zap)zadb.a(var1, 1, 1, ImageFormat.getBmp(), (ImageOrPrintOptions)null, (com.aspose.cells.b.a.d.zm)null, var0);
      return var2.n();
   }
}
